<?php

use yii\helpers\Html;
use yii\widgets\DetailView;

/* @var $this yii\web\View */
/* @var $model app\models\Suggest */

$this->title = $model->name;
$this->params['breadcrumbs'][] = ['label' => '用户建议', 'url' => ['index']];
$this->params['breadcrumbs'][] = $model->id;
?>
<div class="suggest-view">

    <h4><?= Html::encode($model->subject) ?></h4>

    <!--
    <p>
        <//?= Html::a('Update', ['update', 'id' => $model->id], ['class' => 'btn btn-primary']) ?>
        <//?= Html::a('Delete', ['delete', 'id' => $model->id], [
            'class' => 'btn btn-danger',
            'data' => [
                'confirm' => 'Are you sure you want to delete this item?',
                'method' => 'post',
            ],
        ]) ?>
    </p>
    -->

    <?= DetailView::widget([
        'model' => $model,

        //'options' => ['class' => 'table table-striped table-bordered detail-view'],
        'template' => '<tr><th width=30%>{label}</th><td>{value}</td></tr>',
        //'options' => ['class' => 'table table-striped table-bordered detail-view'],
        'options' => ['class' => 'table table-striped detail-view'],

        'attributes' => [
            //'id',
            'name',
            'email:email',
            //'subject',
            'body',
            //'verifycode',
        ],
    ]) ?>

</div>
